package com.my.xq.repository;


import javax.transaction.Transactional;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import com.my.xq.domain.entity.Plan_Court;
import com.sskj.core.repository.GenericRepository;

public interface Plan_CourtRepository extends GenericRepository<Plan_Court, String> {
	@Transactional
	@Modifying(clearAutomatically = true)
	@Query("DELETE FROM Plan_Court WHERE planid = ?1")
	void unbindCourt(String planid);
}
